package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.billpool.Detail.ReqB302InPoolPledgeDetail;
import com.fingard.xml.XmlTextReader;

/*入池质押
 * */
public class ReqB302InPoolPledge extends RequestBase {
    //票据总笔数
    public String Totalcount;
    //票据总金额
    public String Totalamt;
    //质押申请日期 yyyy-MM-dd
    public String Appdate;
    public ReqB302InPoolPledgeDetail detail;
    private XmlTextReader xmlReader;
    public boolean readRecord() throws Exception {
        detail = null;
        if (xmlReader.read(PATH_Detail)) {
            detail = new ReqB302InPoolPledgeDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }

    public ReqB302InPoolPledge(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        Totalcount = xmlReader.getSimpleText("Totalcount");
        Totalamt = xmlReader.getSimpleText("Totalamt");
        Appdate = xmlReader.getSimpleText("Appdate");
    }
}
